package org.whb.user.mapper;

import org.whb.basic.dto.LoginDto;
import org.whb.basic.mapper.BaseMapper;
import org.whb.user.domain.Logininfo;
import org.whb.user.domain.User;

public interface LogininfoMapper extends BaseMapper<Logininfo>{
    /**
     * 通过username和type存储
     * @param dto
     * @return
     */
    Logininfo loadByUsernameAndType(LoginDto dto);

    /**
     * 通过Userid
     * @param user_id
     * @return
     */
    Logininfo loadByUserId(Long user_id);
}
